package com.freemaster.sys;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.freemaster.sys.entity.User;
import com.freemaster.sys.service.UserService;

@Controller
public class WelcomeController {
	Logger logger = LoggerFactory.getLogger(WelcomeController.class);
	
	@Autowired
	private UserService userService;
	
	@RequestMapping({"/"})
	public String welcome(Model model){
		logger.info("进入登陆页面...");
		
		//User user = userService.findByUsername("admin");
		
		return "/modules/sys/login";
	}
}
